]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Apply overshoot threshold to the left as well
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 24 Jun 2022 14:37:00 +0000 (16:37 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Dec 2022 11:37:58 +0000 (11:37 +0000)
We also want to apply this threshold when overshooting to the left, not
only to the right.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4774

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>

js/ui/appDisplay.js

index db87c063f46e3f051d7b0aacccd7cfceb8658dec..3fa1451d09300c77be28b904753da482fff1a50a 100644 (file)
@@ -851,7 +851,9 @@ var BaseAppView = GObject.registerClass({
         const [gridWidth, gridHeight] = this.get_transformed_size();
 
         const vertical = this._orientation === Clutter.Orientation.VERTICAL;
-        const gridStart = vertical ? gridY : gridX;
+        const gridStart = vertical ?
+            ? gridY + DRAG_OVERSHOOT_THRESHOLD
+            : gridX + DRAG_OVERSHOOT_THRESHOLD;
         const gridEnd = vertical
             ? gridY + gridHeight - OVERSHOOT_THRESHOLD
             : gridX + gridWidth - OVERSHOOT_THRESHOLD;